Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 3 |
1 | import { toMiddlewareWrapper } from '../wrapper'; |
||
4 | it('enhance input function with toMiddleware', () => { |
||
5 | const operationFunction = () => {}; |
||
6 | const enhanced = toMiddlewareWrapper(operationFunction); |
||
7 | expect(typeof enhanced).toBe('function'); |
||
8 | expect(enhanced.name).toBe('operationFunction'); |
||
9 | }); |
||
10 | |||
36 |